﻿using Caliburn.Micro;
using Phones.Client.Model;
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;

namespace Phones.Client.ViewModel
{
    [Export(typeof(EmployeePropertiesViewModel))]
    public class EmployeePropertiesViewModel : PropertyChangedBase
    {
        private Contact _item;

        public Contact Contact
        {
            get { return _item; }
            set
            {
                _item = value;
                NotifyOfPropertyChange(() => Contact);
            }
        }

        public EmployeePropertiesViewModel(Contact item = null)
        {
            _item = item == null ? new Contact() : item;
        }

        public void Save(Contact contact)
        {
            
        }

        public bool CanSave(Contact contact)
        {
            return false;
        }
    }
}
